home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 January / EnterCD 0105.iso / Internet / Norton Internet Security 2005 / NIS_Retail.EXE / Setup / PControl / APP / pcwiz.dll / HTML / WIZ-ACCOUNTMODE.JS < prev    next >
Encoding:
JavaScript  |  2004-08-31  |  2.7 KB  |  101 lines

  1. ////////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // PRODUCT: Norton Internet Security/Symantec Desktop Firewall
  4. //
  5. // NAME:    wiz-AccountMode.htm.js (Javascript file for wiz-AccountMode.HTM)
  6. //
  7. // Copyright (c) by Symantec Corporation. All rights reserved.
  8. //
  9. ////////////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. function OnTabOver()
  12. {
  13.     // Last Control Tab over to the <back, next, close> button.
  14.     var VK_TAB = 9;
  15.     if (window.event.keyCode == VK_TAB)
  16.         window.parent.frames("bottom",0).focus();
  17. }
  18.  
  19. function Page_GoNext()
  20. {
  21.     if(AccountModeSel[0].checked)
  22.     {
  23.         // Now switch the User Mode behind the scenes
  24.         if(PCWizHelper.bWinUserOK == true)
  25.         {
  26.             parent.window.SetAccountMode(0);
  27.  
  28.             // To Speed things up we only want to "Switch" the mode if it is
  29.             // if it is currently different
  30.             if(PCWizHelper.bWindowsAccount == false)
  31.                 PCWizHelper.SetWindowsAccount(true);
  32.         }
  33.         else
  34.         {
  35.             PCWizHelper.MultiUserWarning();
  36.             return false;
  37.         }
  38.  
  39.     }
  40.     else
  41.     {
  42.         parent.window.SetAccountMode(1);
  43.  
  44.         // To Speed things up we only want to "Switch" the mode if it is
  45.         // if it is currently different
  46.         if(PCWizHelper.bWindowsAccount == true)
  47.             PCWizHelper.SetWindowsAccount(false);
  48.     }
  49.  
  50.     return true;
  51. }
  52.  
  53. function Page_GoBack()
  54. {
  55.     return true;
  56. }
  57.  
  58. function OnLoad()
  59. {
  60.     if (PCWizHelper.bWinUserOK)
  61.     {
  62.         AccountModeSel[0].checked = true;
  63.         AccountModeSel[1].checked = false;
  64.     }
  65.     else
  66.     {
  67.         AccountModeSel[0].checked = false;
  68.         AccountModeSel[1].checked = true;
  69.     }
  70.  
  71.     window.NISTitleName1.innerText = WrapNisum.ProductName;
  72.     window.NISTitleName2.innerText = WrapNisum.ProductName;
  73.     window.NISTitleName3.innerText = WrapNisum.ProductName;
  74.  
  75.     // If NIS Pro change the text string.
  76.     // Modify Parental/Productivity Text HERE..
  77.     var sProductType = WrapNisum.ProductType
  78.  
  79.     if(sProductType == "PT_PRO")
  80.     {
  81.         window.ParentalProductivitySupervisor1.innerText = StrID("ParentalProductivitySupervisors_NISPRO_LowerCase");
  82.     }
  83. }
  84.  
  85. function OnKeyDownHandler()
  86. {
  87.     // Last Control Tab over to the <back, next, close> button.
  88.     var VK_ESCAPE = 27;
  89.  
  90.     if (window.event.keyCode == VK_ESCAPE)
  91.     {
  92.         // Escape key.. We want to exit out of the wizard..
  93.         parent.window.navigate("res://closeme.xyz");
  94.     }
  95. }
  96.  
  97. function OnUnLoad()
  98. {
  99.     // Disable Next button, so user cannot constantly click.
  100.     window.parent.frames("bottom").NextB.disabled = true;
  101. }